import request from '@/utils/request'

export function queryAppPage(query) {
    return request({
        url: '/gateway/app/page',
        method: 'get',
        params: query
    })
}


export function createApp(data) {
    return request({
        url: '/gateway/app/generate',
        method: 'post',
        data: data
    })
}


export function queryAppDetail(query) {
    return request({
        url: '/gateway/app/detail',
        method: 'get',
        params: query
    })
}

export function updateApp(data) {
    return request({
        url: '/gateway/app/update',
        method: 'put',
        data: data
    })
}

export function delApp(query) {
    return request({
        url: '/gateway/app/del',
        method: 'delete',
        params: query
    })
}


export function queryAppGroupPage(query) {
    return request({
        url: '/gateway/app/group/page',
        method: 'get',
        params: query
    })
}


export function bindAppGroup(data) {
    return request({
        url: '/gateway/app/bindAppGroup',
        method: 'post',
        data: data
    })
}

export function delBindGroup(query) {
    return request({
        url: '/gateway/app/group/del',
        method: 'delete',
        params: query
    })
}
